﻿<UserControl x:Class="TimeSplicerModule.Views.JobRoleView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"
             Width="600" Height="600">
    
    <Grid VerticalAlignment="Top" HorizontalAlignment="Left" Margin="5">
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="150" />
            <ColumnDefinition Width="225" />
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition />
            <RowDefinition />
            <RowDefinition />
            <RowDefinition Height="75" />
        </Grid.RowDefinitions>


        <!-- Name -->
        <Border Grid.Column="0" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5">
            <TextBlock Text="Name:" />
        </Border>

        <Border Grid.Column="1" Grid.Row="0" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">
            <TextBox Text="{Binding Path=Name}"  Width="200"/>
        </Border>

        <!-- Description -->
        <Border Grid.Column="0" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5">
            <TextBlock Text="Description:" />
        </Border>

        <Border Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">
            <TextBox Text="{Binding Path=Description}" Width="200" />
        </Border>


        <!-- Is Active -->
        <Border Grid.Column="0" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="5">
            <TextBlock Text="Is Active:" />
        </Border>

        <Border Grid.Column="1" Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="5">
            <CheckBox IsChecked="{Binding Path=IsActive}" />
        </Border>


        <Border Grid.Column="0" Grid.Row="7" Grid.ColumnSpan="2" VerticalAlignment="Center" HorizontalAlignment="Center">
            <StackPanel Orientation="Horizontal">
                <Button Name="saveButton" Content="Save" Width="100" Height="25" Click="saveButton_Click" />
                <Button Name="saveExitButton" Content="Save &amp; Exit" Width="100" Height="25" Click="saveExitButton_Click"  Margin="15,0,0,0" />
                <Button Name="cancelButton" Content="Cancel" Width="100" Height="25" Click="cancelButton_Click"  Margin="15,0,0,0" />
            </StackPanel>
        </Border>
    </Grid>
</UserControl>
